Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Prevent invalid compressed responses from making executions stuck forever #8315

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 12, 2024

Summary

When a service responds with compressed data that is partial, invalid, or contains trailing garbage, it can cause an execution to get stuck forever.
This PR detects this scenario and throws an explicit error in this case.

Related tickets and issues

NODE-1000

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@netroy netroy changed the title fix(core): Prevent invalid or partial compressed responses from making executions stuck forever fix(core): Prevent invalid compressed responses from making executions stuck forever Jan 12, 2024
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 12, 2024
Copy link

cypress bot commented Jan 12, 2024

1 flaky test on run #3737 ↗︎

0 331 5 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: 49fbcc301c
Status: Passed Duration: 03:25 💡
Started: Jan 12, 2024 2:14 PM Ended: Jan 12, 2024 2:17 PM
Flakiness  cypress/e2e/29-templates.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Templates > should save template id with the workflow Test Replay Screenshots Video

Review all test suite changes for PR #8315 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 0776814 into master Jan 12, 2024
30 checks passed
@netroy netroy deleted the NODE-1000-handle-bad-compression branch January 12, 2024 14:18
netroy added a commit that referenced this pull request Jan 16, 2024
@github-actions github-actions bot mentioned this pull request Jan 16, 2024
@janober
Copy link
Member

janober commented Jan 16, 2024

Got released with n8n@1.24.1

@github-actions github-actions bot mentioned this pull request Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants